import Router from './router'
import React, {Suspense, useEffect} from 'react'
import { getUserInfo }  from './utils'

const App =() => {

  useEffect(() => {
    // 获取用户信息
    getUserInfo()
  }, [])

  return <Suspense fallback={<div>加载中。。。</div>} >
    <Router/>
  </Suspense>
}

export default App